package com.zhouyer.study.service.fallback;

import com.zhouyer.study.service.feign.EmailFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 邮件服务降级
 *
 * @author zhouyao
 * @version 1.0
 * @date 2021/12/7 8:45 上午
 */
@Component
@Slf4j
public class EmailFeignClientFallback implements EmailFeignClient {
    @Override
    public boolean sendEmail(String email, String code) {
        log.info("======服务降级：发送邮件接口统一返回值：false=====");
        return Boolean.FALSE;
    }
}
